$(function(){
	$("#save").click(function(){
		$("input[type='text']").each(function(i, ipt){
  			if($(ipt).val() == ""){
  				mui.alert("请输入完整信息！")
  				return false;
  			}else{
  				var address = {
  					name:"",
  					addr:"",
  					phone:""
  				}
  				
				address.name = $("#name").val();
				address.addr = $("cityResult3").text()+$("#addr").val();
				address.phone = $("#phone").val();
				
				localStorage.setItem("$address",JSON.stringify(address));
				
				window.location.href = "new-address.html";
  			}
		});
	});
});
